import React, { Component } from 'react'
import useFn from '../position'
import MouseUrl from '../assets/mouse.gif'
export default function Mouse(){

  // render() {
    // let { x, y } = this.state
    let { x, y } = useFn();
    // console.log(useFn());
    return (
      <div>
        <img
          src={MouseUrl}
          alt=''
          style={{ position: 'absolute', left: x, top: y, width:120 }}
        />
      </div>
    )
  }
// }
